package com.itheima.StudentPackage;

import java.util.ArrayList;

public class StudentManager {
    private ArrayList<Student> students=new ArrayList<>();

    private StudentOperate studentOperate=new StudentOperateImpl();

    private int allScore;

    public StudentManager() {
        students.add(new Student("关羽",'男',321));
        students.add(new Student("赵云",'男',321));
        students.add(new Student("张飞",'男',321));
        students.add(new Student("黄忠",'男',321));
        students.add(new Student("马超",'男',321));
    }

    public StudentManager(ArrayList<Student> students) {

    }

    public void listAll(){
        studentOperate.listAllScore(students);
    }
    public void listAverage(){

        studentOperate.listAvg(students);
    }
}
